package com.pajk.user.dal.mapper;

import com.pajk.user.dal.model.UserExtDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author Sean Gao
 */
public interface UserExtMapper {

    public UserExtDO getUserExt(@Param("userId") Long userId, @Param("domain") String domain, @Param("extKey") String extKey);

    public List<UserExtDO> getUserExtList(@Param("userId") Long userId, @Param("domain") String domain);

    public void insertUserExt(UserExtDO userExtDO);

    public int updateUserExt(Map<String, Object> params);

    public int deleteUserExt(@Param("userId") Long userId, @Param("domain") String domain, @Param("extKey") String extKey, @Param("version") Long version);
}
